home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2303 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news.bridge.net!news
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Callbacks using member functions
  5. Date: 17 Jan 1996 00:38:31 GMT
  6. Organization: self-employed
  7. Message-ID: <4dhge7$u9c@news.bridge.net>
  8. References: <4dgkke$8mf@knot.queensu.ca>
  9. NNTP-Posting-Host: ppp-mia2-81.bridge.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15.  
  16. Wintermute;   (Wintermute?)
  17.  
  18. Let's think about this. You will give to the Motif system the addresses
  19. of functions in your code. You want it to somehow find not only
  20. a function, but a particular object, when it makes the call.
  21.  
  22. But Motif will not be HOLDING any information about the identity of
  23. the object, unless you can somehow encode that in the function address 
  24. itself. For each object, a unique function.
  25.  
  26. Since your program may dynamically create and destroy any number of your 
  27. target objects, this implies that you need to dynamically create and 
  28. destroy functions to associate with them, i.e. modify object code at 
  29. runtime. Alas, you can't.
  30.  
  31.  
  32.         David
  33.  
  34.  
  35.  
  36.